using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ImageAnalystTools._Statistical
{
    /// <summary>
    /// <para>Zonal Statistics as Table</para>
    /// <para>Summarizes the values of a raster within the zones of another dataset and reports the results as a table.</para>
    /// <para>汇总另一个数据集区域内栅格的值，并将结果报告为表格。</para>
    /// </summary>    
    [DisplayName("Zonal Statistics as Table")]
    public class ZonalStatisticsAsTable : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ZonalStatisticsAsTable()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_zone_data">
        /// <para>Input raster or feature zone data</para>
        /// <para><xdoc>
        ///   <para>The dataset that defines the zones.</para>
        ///   <para>The zones can be defined by an integer raster or a feature layer.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>定义区域的数据集。</para>
        ///   <para>区域可由整数栅格或要素图层定义。</para>
        /// </xdoc></para>
        /// </param>
        /// <param name="_zone_field">
        /// <para>Zone field</para>
        /// <para><xdoc>
        ///   <para>The field that contains the values that define each zone.</para>
        ///   <para>It can be an integer or a string field of the zone dataset.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>包含定义每个区域的值的字段。</para>
        ///   <para>它可以是区域数据集的整数或字符串字段。</para>
        /// </xdoc></para>
        /// </param>
        /// <param name="_in_value_raster">
        /// <para>Input value raster</para>
        /// <para>The raster that contains the values on which to calculate a statistic.</para>
        /// <para>包含用于计算统计数据的值的栅格。</para>
        /// </param>
        /// <param name="_out_table">
        /// <para>Output table</para>
        /// <para><xdoc>
        ///   <para>The output table that will contain the summary of the values in each zone.</para>
        ///   <para>The format of the table is determined by the output location and path. By default, the output will be a geodatabase table if in a geodatabase workspace, and a dBASE table if in a file workspace.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出表，其中包含每个区域中值的摘要。</para>
        ///   <para>表的格式由输出位置和路径决定。默认情况下，输出将为地理数据库表（如果位于地理数据库工作空间中），如果输出为dBASE表（如果位于文件工作空间中）。</para>
        /// </xdoc></para>
        /// </param>
        public ZonalStatisticsAsTable(object _in_zone_data, object _zone_field, object _in_value_raster, object _out_table)
        {
            this._in_zone_data = _in_zone_data;
            this._zone_field = _zone_field;
            this._in_value_raster = _in_value_raster;
            this._out_table = _out_table;
        }
        public override string ToolboxName => "Image Analyst Tools";

        public override string ToolName => "Zonal Statistics as Table";

        public override string CallName => "ia.ZonalStatisticsAsTable";

        public override List<string> AcceptEnvironments => ["autoCommit", "cellSize", "cellSizeProjectionMethod", "compression", "configKeyword", "extent", "geographicTransformations", "mask", "outputCoordinateSystem", "parallelProcessingFactor", "qualifiedFieldNames", "scratchWorkspace", "snapRaster", "tileSize", "transferDomains", "workspace"];

        public override object[] ParameterInfo => [_in_zone_data, _zone_field, _in_value_raster, _out_table, _ignore_nodata.GetGPValue(), _statistics_type.GetGPValue(), _process_as_multidimensional.GetGPValue(), _percentile_values, _percentile_interpolation_type.GetGPValue()];

        /// <summary>
        /// <para>Input raster or feature zone data</para>
        /// <para><xdoc>
        ///   <para>The dataset that defines the zones.</para>
        ///   <para>The zones can be defined by an integer raster or a feature layer.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>定义区域的数据集。</para>
        ///   <para>区域可由整数栅格或要素图层定义。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input raster or feature zone data")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_zone_data { get; set; }


        /// <summary>
        /// <para>Zone field</para>
        /// <para><xdoc>
        ///   <para>The field that contains the values that define each zone.</para>
        ///   <para>It can be an integer or a string field of the zone dataset.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>包含定义每个区域的值的字段。</para>
        ///   <para>它可以是区域数据集的整数或字符串字段。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Zone field")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _zone_field { get; set; }


        /// <summary>
        /// <para>Input value raster</para>
        /// <para>The raster that contains the values on which to calculate a statistic.</para>
        /// <para>包含用于计算统计数据的值的栅格。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input value raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_value_raster { get; set; }


        /// <summary>
        /// <para>Output table</para>
        /// <para><xdoc>
        ///   <para>The output table that will contain the summary of the values in each zone.</para>
        ///   <para>The format of the table is determined by the output location and path. By default, the output will be a geodatabase table if in a geodatabase workspace, and a dBASE table if in a file workspace.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出表，其中包含每个区域中值的摘要。</para>
        ///   <para>表的格式由输出位置和路径决定。默认情况下，输出将为地理数据库表（如果位于地理数据库工作空间中），如果输出为dBASE表（如果位于文件工作空间中）。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output table")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_table { get; set; }


        /// <summary>
        /// <para>Ignore NoData in calculations</para>
        /// <para><xdoc>
        ///   <para>Specifies whether NoData values in the value input will be ignored in the results of the zone that they fall within.</para>
        ///   <bulletList>
        ///     <bullet_item>Checked—Within any particular zone, only cells that have a value in the input value raster will be used in determining the output value for that zone. NoData cells in the value raster will be ignored in the statistic calculation. This is the default.</bullet_item><para/>
        ///     <bullet_item>Unchecked—Within any particular zone, if NoData cells exist in the value raster, they will not be ignored and their existence indicates that there is insufficient information to perform statistical calculations for all the cells in that zone. Consequently, the entire zone will receive the NoData value on the output raster.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定值输入中的 NoData 值是否在它们所属区域的结果中被忽略。</para>
        ///   <bulletList>
        ///     <bullet_item>选中 - 在任何特定区域内，仅使用输入值栅格中具有值的像元来确定该区域的输出值。值栅格中的 NoData 像元将在统计数据计算中被忽略。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>未选中 - 在任何特定区域内，如果值栅格中存在 NoData 像元，则不会忽略它们，并且它们的存在表明没有足够的信息来对该区域中的所有像元执行统计计算。因此，整个区域将接收输出栅格上的 NoData 值。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Ignore NoData in calculations")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _ignore_nodata_value _ignore_nodata { get; set; } = _ignore_nodata_value._true;

        public enum _ignore_nodata_value
        {
            /// <summary>
            /// <para>DATA</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("DATA")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>NODATA</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("NODATA")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Statistics type</para>
        /// <para><xdoc>
        ///   <para>Specifies the statistic type to be calculated.</para>
        ///   <bulletList>
        ///     <bullet_item>All—All of the statistics will be calculated. This is the default.</bullet_item><para/>
        ///     <bullet_item>Mean—The average of all cells in the value raster that belong to the same zone as the output cell will be calculated.</bullet_item><para/>
        ///     <bullet_item>Majority—The value that occurs most often of all cells in the value raster that belong to the same zone as the output cell will be calculated.</bullet_item><para/>
        ///     <bullet_item>Maximum—The largest value of all cells in the value raster that belong to the same zone as the output cell will be calculated.</bullet_item><para/>
        ///     <bullet_item>Median—The median value of all cells in the value raster that belong to the same zone as the output cell will be calculated.</bullet_item><para/>
        ///     <bullet_item>Minimum—The smallest value of all cells in the value raster that belong to the same zone as the output cell will be calculated.</bullet_item><para/>
        ///     <bullet_item>Minority—The value that occurs least often of all cells in the value raster that belong to the same zone as the output cell will be calculated.</bullet_item><para/>
        ///     <bullet_item>Percentile—The percentile of all cells in the value raster that belong to the same zone as the output cell will be calculated. The 90th percentile is calculated by default. You can specify other values (from 0 to 100) using the Percentile values parameter.</bullet_item><para/>
        ///     <bullet_item>Range—The difference between the largest and smallest value of all cells in the value raster that belong to the same zone as the output cell will be calculated.</bullet_item><para/>
        ///     <bullet_item>Standard deviation—The standard deviation of all cells in the value raster that belong to the same zone as the output cell will be calculated.</bullet_item><para/>
        ///     <bullet_item>Sum—The total value of all cells in the value raster that belong to the same zone as the output cell will be calculated.</bullet_item><para/>
        ///     <bullet_item>Variety—The number of unique values for all cells in the value raster that belong to the same zone as the output cell will be calculated.</bullet_item><para/>
        ///     <bullet_item>Minimum and Maximum—Both the minimum and maximum statistics will be calculated.</bullet_item><para/>
        ///     <bullet_item>Mean and Standard deviation—Both the mean and standard deviation statistics will be calculated.</bullet_item><para/>
        ///     <bullet_item>Minimum, Maximum and Mean—The minimum, maximum, and mean statistics will be calculated.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定要计算的统计信息类型。</para>
        ///   <bulletList>
        ///     <bullet_item>全部 - 将计算所有统计数据。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>均值—将计算值栅格中与输出像元属于同一区域的所有像元的平均值。</bullet_item><para/>
        ///     <bullet_item>多数 - 将计算值栅格中与输出像元属于同一区域的所有像元中出现频率最高的值。</bullet_item><para/>
        ///     <bullet_item>最大值 - 将计算值栅格中与输出像元属于同一区域的所有像元的最大值。</bullet_item><para/>
        ///     <bullet_item>中位数—将计算值栅格中与输出像元属于同一区域的所有像元的中值。</bullet_item><para/>
        ///     <bullet_item>最小值—将计算值栅格中与输出像元属于同一区域的所有像元的最小值。</bullet_item><para/>
        ///     <bullet_item>少数 - 将计算值栅格中与输出像元属于同一区域的所有像元中出现频率最低的值。</bullet_item><para/>
        ///     <bullet_item>百分位数—将计算值栅格中与输出像元属于同一区域的所有像元的百分位数。默认情况下计算第 90 个百分位数。您可以使用百分位数值参数指定其他值（从 0 到 100）。</bullet_item><para/>
        ///     <bullet_item>范围—将计算值栅格中与输出像元属于同一区域的所有像元的最大值和最小值之间的差值。</bullet_item><para/>
        ///     <bullet_item>标准差—将计算值栅格中与输出像元属于同一区域的所有像元的标准差。</bullet_item><para/>
        ///     <bullet_item>总和—将计算值栅格中与输出像元属于同一区域的所有像元的总值。</bullet_item><para/>
        ///     <bullet_item>多样性—将计算值栅格中与输出像元属于同一区域的所有像元的唯一值数。</bullet_item><para/>
        ///     <bullet_item>最小值和最大值—将同时计算最小值和最大值统计数据。</bullet_item><para/>
        ///     <bullet_item>均值和标准差—将计算均值和标准差统计数据。</bullet_item><para/>
        ///     <bullet_item>最小值、最大值和平均值—将计算最小值、最大值和平均值统计数据。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Statistics type")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _statistics_type_value _statistics_type { get; set; } = _statistics_type_value._ALL;

        public enum _statistics_type_value
        {
            /// <summary>
            /// <para>All</para>
            /// <para>All—All of the statistics will be calculated. This is the default.</para>
            /// <para>全部 - 将计算所有统计数据。这是默认设置。</para>
            /// </summary>
            [Description("All")]
            [GPEnumValue("ALL")]
            _ALL,

            /// <summary>
            /// <para>Mean</para>
            /// <para>Mean—The average of all cells in the value raster that belong to the same zone as the output cell will be calculated.</para>
            /// <para>均值—将计算值栅格中与输出像元属于同一区域的所有像元的平均值。</para>
            /// </summary>
            [Description("Mean")]
            [GPEnumValue("MEAN")]
            _MEAN,

            /// <summary>
            /// <para>Majority</para>
            /// <para>Majority—The value that occurs most often of all cells in the value raster that belong to the same zone as the output cell will be calculated.</para>
            /// <para>多数 - 将计算值栅格中与输出像元属于同一区域的所有像元中出现频率最高的值。</para>
            /// </summary>
            [Description("Majority")]
            [GPEnumValue("MAJORITY")]
            _MAJORITY,

            /// <summary>
            /// <para>Maximum</para>
            /// <para>Maximum—The largest value of all cells in the value raster that belong to the same zone as the output cell will be calculated.</para>
            /// <para>最大值 - 将计算值栅格中与输出像元属于同一区域的所有像元的最大值。</para>
            /// </summary>
            [Description("Maximum")]
            [GPEnumValue("MAXIMUM")]
            _MAXIMUM,

            /// <summary>
            /// <para>Median</para>
            /// <para>Median—The median value of all cells in the value raster that belong to the same zone as the output cell will be calculated.</para>
            /// <para>中位数—将计算值栅格中与输出像元属于同一区域的所有像元的中值。</para>
            /// </summary>
            [Description("Median")]
            [GPEnumValue("MEDIAN")]
            _MEDIAN,

            /// <summary>
            /// <para>Minimum</para>
            /// <para>Minimum—The smallest value of all cells in the value raster that belong to the same zone as the output cell will be calculated.</para>
            /// <para>最小值—将计算值栅格中与输出像元属于同一区域的所有像元的最小值。</para>
            /// </summary>
            [Description("Minimum")]
            [GPEnumValue("MINIMUM")]
            _MINIMUM,

            /// <summary>
            /// <para>Minority</para>
            /// <para>Minority—The value that occurs least often of all cells in the value raster that belong to the same zone as the output cell will be calculated.</para>
            /// <para>少数 - 将计算值栅格中与输出像元属于同一区域的所有像元中出现频率最低的值。</para>
            /// </summary>
            [Description("Minority")]
            [GPEnumValue("MINORITY")]
            _MINORITY,

            /// <summary>
            /// <para>Percentile</para>
            /// <para>Percentile—The percentile of all cells in the value raster that belong to the same zone as the output cell will be calculated. The 90th percentile is calculated by default. You can specify other values (from 0 to 100) using the Percentile values parameter.</para>
            /// <para>百分位数—将计算值栅格中与输出像元属于同一区域的所有像元的百分位数。默认情况下计算第 90 个百分位数。您可以使用百分位数值参数指定其他值（从 0 到 100）。</para>
            /// </summary>
            [Description("Percentile")]
            [GPEnumValue("PERCENTILE")]
            _PERCENTILE,

            /// <summary>
            /// <para>Range</para>
            /// <para>Range—The difference between the largest and smallest value of all cells in the value raster that belong to the same zone as the output cell will be calculated.</para>
            /// <para>范围—将计算值栅格中与输出像元属于同一区域的所有像元的最大值和最小值之间的差值。</para>
            /// </summary>
            [Description("Range")]
            [GPEnumValue("RANGE")]
            _RANGE,

            /// <summary>
            /// <para>Standard deviation</para>
            /// <para>Standard deviation—The standard deviation of all cells in the value raster that belong to the same zone as the output cell will be calculated.</para>
            /// <para>标准差—将计算值栅格中与输出像元属于同一区域的所有像元的标准差。</para>
            /// </summary>
            [Description("Standard deviation")]
            [GPEnumValue("STD")]
            _STD,

            /// <summary>
            /// <para>Sum</para>
            /// <para>Sum—The total value of all cells in the value raster that belong to the same zone as the output cell will be calculated.</para>
            /// <para>总和—将计算值栅格中与输出像元属于同一区域的所有像元的总值。</para>
            /// </summary>
            [Description("Sum")]
            [GPEnumValue("SUM")]
            _SUM,

            /// <summary>
            /// <para>Variety</para>
            /// <para>Variety—The number of unique values for all cells in the value raster that belong to the same zone as the output cell will be calculated.</para>
            /// <para>多样性—将计算值栅格中与输出像元属于同一区域的所有像元的唯一值数。</para>
            /// </summary>
            [Description("Variety")]
            [GPEnumValue("VARIETY")]
            _VARIETY,

            /// <summary>
            /// <para>Minimum and Maximum</para>
            /// <para>Minimum and Maximum—Both the minimum and maximum statistics will be calculated.</para>
            /// <para>最小值和最大值—将同时计算最小值和最大值统计数据。</para>
            /// </summary>
            [Description("Minimum and Maximum")]
            [GPEnumValue("MIN_MAX")]
            _MIN_MAX,

            /// <summary>
            /// <para>Mean and Standard deviation</para>
            /// <para>Mean and Standard deviation—Both the mean and standard deviation statistics will be calculated.</para>
            /// <para>均值和标准差—将计算均值和标准差统计数据。</para>
            /// </summary>
            [Description("Mean and Standard deviation")]
            [GPEnumValue("MEAN_STD")]
            _MEAN_STD,

            /// <summary>
            /// <para>Minimum, Maximum and Mean</para>
            /// <para>Minimum, Maximum and Mean—The minimum, maximum, and mean statistics will be calculated.</para>
            /// <para>最小值、最大值和平均值—将计算最小值、最大值和平均值统计数据。</para>
            /// </summary>
            [Description("Minimum, Maximum and Mean")]
            [GPEnumValue("MIN_MAX_MEAN")]
            _MIN_MAX_MEAN,

        }

        /// <summary>
        /// <para>Process as multidimensional</para>
        /// <para><xdoc>
        ///   <para>Specifies how the input rasters will be processed if they are multidimensional.</para>
        ///   <bulletList>
        ///     <bullet_item>Unchecked—Statistics will be calculated from the current slice of the input multidimensional dataset. This is the default.</bullet_item><para/>
        ///     <bullet_item>Checked—Statistics will be calculated for all dimensions of the input multidimensional dataset.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定输入栅格为多维栅格时的处理方式。</para>
        ///   <bulletList>
        ///     <bullet_item>未选中—将根据输入多维数据集的当前剖面计算统计数据。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>选中—将计算输入多维数据集的所有维度的统计数据。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Process as multidimensional")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _process_as_multidimensional_value _process_as_multidimensional { get; set; } = _process_as_multidimensional_value._false;

        public enum _process_as_multidimensional_value
        {
            /// <summary>
            /// <para>CURRENT_SLICE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("CURRENT_SLICE")]
            [GPEnumValue("false")]
            _false,

            /// <summary>
            /// <para>ALL_SLICES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ALL_SLICES")]
            [GPEnumValue("true")]
            _true,

        }

        /// <summary>
        /// <para>Percentile values</para>
        /// <para><xdoc>
        ///   <para>The percentile to calculate. The default is 90, indicating the 90th percentile.</para>
        ///   <para>The values can range from 0 to 100. The 0th percentile is essentially equivalent to the minimum statistic, and the 100th percentile is equivalent to maximum. A value of 50 will produce essentially the same result as the median statistic.</para>
        ///   <para>This option is only available if the Statistics type parameter is set to Percentile or All.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>要计算的百分位数。默认值为 90，表示第 90 个百分位数。</para>
        ///   <para>这些值的范围可以从 0 到 100。第 0 个百分位数基本等于最小统计量，第 100 个百分位数等于最大值。值为 50 将产生与中位数统计量基本相同的结果。</para>
        ///   <para>仅当统计信息类型参数设置为“百分位数”或“全部”时，此选项才可用。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Percentile values")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public List<object> _percentile_values { get; set; } = null;


        /// <summary>
        /// <para>Percentile interpolation type</para>
        /// <para><xdoc>
        ///   <para>Specifies the method of percentile interpolation to be used when the number of values from the input raster to be calculated are even.</para>
        ///   <bulletList>
        ///     <bullet_item>Auto-detect—If the input value raster is of integer pixel type, the Nearest method is used. If the input value raster is of floating point pixel type, the Linear method is used. This is the default.</bullet_item><para/>
        ///     <bullet_item>Nearest—The nearest available value to the desired percentile is used.</bullet_item><para/>
        ///     <bullet_item>Linear—The weighted average of the two surrounding values from the desired percentile is used.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定当要计算的输入栅格中的值数为偶数时要使用的百分位插值方法。</para>
        ///   <bulletList>
        ///     <bullet_item>自动检测 - 如果输入值栅格为整数像素类型，则使用“最近”方法。如果输入值栅格为浮点像素类型，则使用线性方法。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>最近 - 使用最接近所需百分位数的可用值。</bullet_item><para/>
        ///     <bullet_item>线性—使用所需百分位数中两个周围值的加权平均值。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Percentile interpolation type")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _percentile_interpolation_type_value _percentile_interpolation_type { get; set; } = _percentile_interpolation_type_value._AUTO_DETECT;

        public enum _percentile_interpolation_type_value
        {
            /// <summary>
            /// <para>Auto-detect</para>
            /// <para>Auto-detect—If the input value raster is of integer pixel type, the Nearest method is used. If the input value raster is of floating point pixel type, the Linear method is used. This is the default.</para>
            /// <para>自动检测 - 如果输入值栅格为整数像素类型，则使用“最近”方法。如果输入值栅格为浮点像素类型，则使用线性方法。这是默认设置。</para>
            /// </summary>
            [Description("Auto-detect")]
            [GPEnumValue("AUTO_DETECT")]
            _AUTO_DETECT,

            /// <summary>
            /// <para>Nearest</para>
            /// <para>Nearest—The nearest available value to the desired percentile is used.</para>
            /// <para>最近 - 使用最接近所需百分位数的可用值。</para>
            /// </summary>
            [Description("Nearest")]
            [GPEnumValue("NEAREST")]
            _NEAREST,

            /// <summary>
            /// <para>Linear</para>
            /// <para>Linear—The weighted average of the two surrounding values from the desired percentile is used.</para>
            /// <para>线性—使用所需百分位数中两个周围值的加权平均值。</para>
            /// </summary>
            [Description("Linear")]
            [GPEnumValue("LINEAR")]
            _LINEAR,

        }

        public ZonalStatisticsAsTable SetEnv(int? autoCommit = null, object cellSize = null, object compression = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object mask = null, object outputCoordinateSystem = null, object parallelProcessingFactor = null, bool? qualifiedFieldNames = null, object scratchWorkspace = null, object snapRaster = null, double[] tileSize = null, bool? transferDomains = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, cellSize: cellSize, compression: compression, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, mask: mask, outputCoordinateSystem: outputCoordinateSystem, parallelProcessingFactor: parallelProcessingFactor, qualifiedFieldNames: qualifiedFieldNames, scratchWorkspace: scratchWorkspace, snapRaster: snapRaster, tileSize: tileSize, transferDomains: transferDomains, workspace: workspace);
            return this;
        }

    }

}